package com.jiyun.feign;

import com.jiyun.entity.day04.KcDTO1;
import com.jiyun.entity.day08.TrainingDTO;
import com.jiyun.entity.day10.CyDTO;
import com.jiyun.entity.day10.JsDTO;
import com.jiyun.entity.day10.SquadsDTO;
import com.jiyun.vo.ResultResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Title: PeopleFeign
 * @Author 杜瑞
 * @Date 2023/8/22 11:10
 */
@FeignClient(name = "day14-yh")
public interface PeopleFeign {

    @RequestMapping("/people/login")
    public ResultResponse login(@RequestParam("username") String username, @RequestParam("password") String password);

    @RequestMapping("/people/findKcNum")
    public ResultResponse findKcNum();

    @RequestMapping("/people/findJSNum")
    public ResultResponse findJsNum();

    @RequestMapping("/people/findPxpxNumber")
    public ResultResponse findPxpxNumber();

    @RequestMapping("/people/findCsNum")
    public ResultResponse findCsNum();

    @RequestMapping("/people/findKcName")
    public ResultResponse findKcName();

    @RequestMapping("/people/findPxName")
    public ResultResponse findPxName();

    @RequestMapping("/people/findCsName")
    public ResultResponse findCsName();

    @RequestMapping("/people/findKNum1")
    public ResultResponse findKNum1(@RequestParam("name") String name);

    @RequestMapping("/people/findKNum2")
    public ResultResponse findKNum2(@RequestParam("name") String name);

    @RequestMapping("/people/findKNum3")
    public ResultResponse findKNum3(@RequestParam("name") String name);

    @RequestMapping("/people/findKNum4")
    public ResultResponse findKNum4(@RequestParam("name") String name);

    @RequestMapping("/people/findPx")
    public ResultResponse findPx();

    @RequestMapping("/people/findPxNum1")
    public ResultResponse findPxNum1();

    @RequestMapping("/people/findPxNum2")
    public ResultResponse findPxNum2();

    @RequestMapping("/people/findPxNum3")
    public ResultResponse findPxNum3();

    @RequestMapping("/people/findSj1")
    public ResultResponse findSj1();

    @RequestMapping("/people/findSj2")
    public ResultResponse findSj2();

    @RequestMapping("/squads/findSquads")
    public ResultResponse findSquads();

    @RequestMapping("/squads/bm")
    public ResultResponse bm(@RequestParam("username") String username, @RequestParam("zd") String zd, @RequestParam("jsId") Integer jsId);

    @RequestMapping("/squads/findBm")
    public ResultResponse findBm(@RequestParam("username") String username, @RequestParam("jsId") Integer jsId);

    @RequestMapping("/people/findMyKc")
    public ResultResponse findMyKc(@RequestBody KcDTO1 kcDTO1);

    @RequestMapping("/people/findMyJs")
    public ResultResponse findMyJs(@RequestBody JsDTO jsDTO);

    @RequestMapping("/people/findMyUser")
    public ResultResponse findMyUser();

    @RequestMapping("/people/findMyPx")
    public ResultResponse findMyPx(@RequestBody TrainingDTO trainingDTO);

    @RequestMapping("/people/findMyZd")
    public ResultResponse findMyZd(@RequestBody SquadsDTO squadsDTO);

    @RequestMapping("/people/findMyCy")
    public ResultResponse findMyCy(@RequestBody CyDTO cyDTO);

    @RequestMapping("/people/updatePassword")
    public ResultResponse updatePassword(@RequestParam("id")Integer id,@RequestParam("password")String password);

    @RequestMapping("/people/chongzhi")
    public ResultResponse chongzhi(@RequestParam("id")Integer id);
}
